package com.soriya.nestlive.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.soriya.nestlive.entity.ChannelEntity;
import com.soriya.nestlive.entity.PageResult;
import com.soriya.nestlive.entity.param.CategoryListParam;
import com.soriya.nestlive.entity.param.ChannelListParam;
import com.soriya.nestlive.entity.vo.ChannelDetailVo;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

public interface ChannelService extends IService<ChannelEntity> {
    PageResult<ChannelEntity> pageQuery(Page<ChannelEntity> page, ChannelListParam param);

    ChannelDetailVo getByUserId();

    PageResult<ChannelDetailVo> follow(Long userId, Integer current, Integer size);

    PageResult<ChannelDetailVo> getRecommendChannel(Integer current, Integer size);

    ChannelDetailVo getDetailById(Long id);

    boolean followChannel(Long channelId);
}
